package com.nefu.huiyi.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nefu.huiyi.entity.Material;

import java.util.List;

public interface MaterialService {
    Material addMaterial(Material material);

    boolean deleteMaterial(Integer id);

    Material updateMaterial(Material material);

//    List<Material> searchByKeyword(String keyword);

    Material getMaterialById(Integer id);

    IPage<Material> getMaterialPage(Page<Material> page, String keyword);

}